package com.linjuke.mayouting.biz.ao;

import com.linjuke.mayouting.biz.ao.query.RoleQuery;
import com.linjuke.mayouting.biz.dal.dataobject.RoleDO;
import com.zjuh.sweet.result.Result;

public interface RoleAO {
	
	Result listRoles(RoleQuery roleQuery);
	
	Result createRole(RoleDO role);
	
	Result viewRole(int id);
	
	Result addPermission(int roleId, int permissionId);
	
	Result removePermission(int roleId, int permissionId);
	
	Result grantUser(int roleId, String username);
	
	Result deleteRole(int roleId);

	Result rejectUser(int roleId, int userId);

}
